#include <iostream>
#include <thread>

using namespace std;

void thread_fun1() {
    cout << "thread_fun1 start" << endl;
    this_thread::sleep_for(chrono::seconds(1));
    cout << "thread_fun1 end" << endl;
}
void thread_fun2(int param, string sParam) {
    cout << "thread_fun2 start" << endl;
    this_thread::sleep_for(chrono::seconds(5));
    cout << "thread_fun2 end" << endl;
}

int main(int argc, char const *argv[])
{
    // 线程1 启动后， 等待1s
    std::thread t1(thread_fun1);
    thread t2(thread_fun2, 10);

    return 0;
}
